/*
 *  Copyright 2024 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../../../styles/variables.less';
@import (reference) '../../../../styles/fonts.less';

.data-assets-widget-container {
  display: flex;
  flex-direction: column;
  height: 100%;

  .ant-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
    overflow: hidden;
  }

  .widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .entity-list-body {
    flex: 1;
    padding: @size-mlg @size-mlg @size-xxs @size-mlg;
    margin: 0;
    overflow-y: auto;
    min-height: 0;
  }

  .widget-footer {
    flex-shrink: 0;
    margin-top: auto;
  }
}

.cards-scroll-container {
  display: flex;
  flex-wrap: wrap;
  gap: @size-sm;

  .card-wrapper {
    height: fit-content;
  }

  .service-card.ant-card {
    height: 100%;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;

    &:hover {
      background: @grey-1;
    }

    .ant-card-body {
      display: flex;
      flex-direction: column;
      text-align: center;
      align-items: center;
      padding: @size-sm @size-mlg;
      max-height: 100%;

      .data-asset-badge {
        width: max-content;
        padding: @size-xs @size-sm;
        background-color: @blue-1;
        .ant-typography {
          color: @primary-color;
          font-size: @size-sm;
        }
      }
    }
  }
}
